﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="l.aspx.cs" Inherits="ZWZ.Web.WebAdmin.Login" %>

<%@ Import Namespace="ZWZ.Web.Config" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        html, body
        {
            font-size: 12px;
            line-height: 20px;
            background-color: #666;
        }
        a
        {
            color: Red;
            text-decoration: none;
        }
        td
        {
            padding: 4px;
        }
        .title
        {
            text-align: right;
            width: 100px;
        }
        .info
        {
            color: Red;
        }
        .line
        {
            border-top: 1px solid #aaa;
            border-bottom: 1px solid #ffffff;
            height: 0px;
        }
    </style>
    <script type="text/javascript">
        function ChangeIdentityCode() {//切换验证码
            var url = "/WebPage/WebAPI/IdentiCode.ashx";
            var IC = document.getElementById("IdentifyingCode");
            IC.src = url + "?t=" + new Date().getTime();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 400px; margin-left: auto; margin-right: auto;">
        <div style="height: 200px; clear: both;">
        </div>
        <div style="border: 5px solid #333; background-color: #fff; padding: 0px; box-shadow: 1px 2px 15px #000">
            <div style="background-color: #ddd; padding: 4px 10px 4px 10px; background-image: linear-gradient(#efefef 0px, #ddd 50%,#ccc 100%);">
                后台管理登录
                <%if (Request.IsLocal)
                  {
                      string url = "t.aspx?url=" + HttpUtility.UrlEncode(RawUrl);
                %>
                <a href='<%=url%>'>^_^</a>
                <%} %>
            </div>
            <div style="height: 20px; clear: both;">
            </div>
            <table>
                <tr>
                    <td class="title">
                        邮箱
                    </td>
                    <td colspan="2">
                        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                    </td>
                    <td class="info">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                            ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="邮箱错误"
                            ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        密码
                    </td>
                    <td colspan="2">
                        <asp:TextBox ID="txtPassword" TextMode="Password" runat="server"></asp:TextBox>
                    </td>
                    <td class="info">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                            ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        验证码
                    </td>
                    <td>
                        <asp:TextBox ID="txtIdentCode" Width="60px" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <img style="cursor: pointer;" id="IdentifyingCode" alt="点击换一个" onclick="ChangeIdentityCode();"
                            src="/WebPage/WebAPI/IdentiCode.ashx?a" />
                    </td>
                    <td class="info">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                            ControlToValidate="txtIdentCode"></asp:RequiredFieldValidator>
                    </td>
                </tr>
            </table>
            <div style="height: 20px; clear: both;">
            </div>
            <div class="line">
            </div>
            <div style="text-align: right; background-color: #ddd; padding: 10px 20px 10px 10px;">
                <asp:Button ID="btnLogin" runat="server" Text="登录" OnClick="Button1_Click" />
            </div>
        </div>
    </div>
    </form>
</body>
</html>
